/**
 * Created by IntelliJ IDEA.
 * User: shenry
 * Date: Apr 29, 2008
 * Time: 5:28:34 AM
 * To change this template use File | Settings | File Templates.
 */
class SecurityFilters {
            static filters = {
        //all(controller:"*", action:"*") {
            all(uri:'/**'){
            before = {
                if (session.user || (controllerName=="user")) {
                    return true
                } else {
                   
                    redirect(controller:"user", action:"login")
                }
            }
        }
    }
}